package chixing.day17.reflect;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Record implements Serializable,Comparable<Record> {
    private String recordId;
    public String userName;
    private String institutionId;
    private char gender;
    private String serialNumber;//流水号
    private LocalDateTime transactionDate;
    private double transactionAmount;

    public Record() {
    }
    public Record(String recordId, String userName) {
        this.recordId = recordId;
        this.userName = userName;
    }
    public Record(String recordId, String userName, String institutionId, char gender, String serialNumber, LocalDateTime transactionDate, double transactionAmount) {
        this.recordId = recordId;
        this.userName = userName;
        this.institutionId = institutionId;
        this.gender = gender;
        this.serialNumber = serialNumber;
        this.transactionDate = transactionDate;
        this.transactionAmount = transactionAmount;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(String institutionId) {
        this.institutionId = institutionId;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public LocalDateTime getTransactionDate() {
        return transactionDate;
    }

    public void setTransactionDate(LocalDateTime transactionDate) {
        this.transactionDate = transactionDate;
    }

    public double getTransactionAmount() {
        return transactionAmount;
    }

    public void setTransactionAmount(double transactionAmount) {
        this.transactionAmount = transactionAmount;
    }

    @Override
    public String toString() {
        return "Record{" +
                "recordId='" + recordId + '\'' +
                ", userName='" + userName + '\'' +
                ", institutionId='" + institutionId + '\'' +
                ", gender=" + gender +
                ", serialNumber='" + serialNumber + '\'' +
                ", transactionDate=" + transactionDate +
                ", transactionAmount=" + transactionAmount +
                '}';
    }

    @Override
    public int compareTo(Record o) {
        return 0;
    }

    public static int fun0(int a,float b){
        return a+10;
    }
    private static void fun1(){

    }

}
